const path = require('path');

module.exports = {
  lintOnSave: false,
  productionSourceMap:false,
  chainWebpack: config => {
    config
    .plugin('html')
    .tap(args => {
      args[0].title= '尚品汇'
      return args
    })
  },
  devServer: {
    proxy: {
      '/api': {
        target: 'http://gmall-h5-api.atguigu.cn',
        // pathRewrite: { '^/api': '' },
      },
    },
  },
}